import java.util.Scanner;
abstract class Mammal{
    String name;
    abstract public void makeSound();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
interface CanJump{
    void jump();
}
class Dog extends Mammal implements CanJump{
    public Dog(String name) {
        this.name = name;
    }

    @Override
    public void makeSound() {
        System.out.println(this.name + ":汪汪汪!");
    }

    @Override
    public void jump() {
        System.out.println(this.name + " can jump high!");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
class Cat extends Mammal implements CanJump{
    String name;

    public Cat() {
    }

    @Override
    public void makeSound() {
        System.out.println(this.name + ":喵喵喵！");
    }

    @Override
    public void jump() {
        System.out.println(this.name + " can jump high!");
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}